<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.h1{
width: 300px;
height: 300px;
background-color: red;
}
.h2{
width: 300px;
height: 300px;
border: 1px solid black;
background: url(../../images/1.png);
background-repeat:no-repeat;
background-position: 50 30;
}
</style>
</head>
<body>
<p class="h1">
第1个div盒子。
</p>
<p class="h2">
第2个div盒子。
</p>
</body>
</html>